﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Web;
using System.Net;
using System.IO;

namespace Cadastro
{
    public partial class CadastroProfessor : Form
    {

        public CadastroProfessor()
        {
            InitializeComponent();
        }

        private void CadastroProfessor_Load(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            PrincipalClass Prin = new PrincipalClass();
            Prin.ExecSql("insert into professor (IDprofessor, NOME, OBS)values("+Convert.ToString(dsCad.Tables[0].Rows[0][0])+",'"+
                         Convert.ToString(dsCad.Tables[0].Rows[0][1]) + "','" + Convert.ToString(dsCad.Tables[0].Rows[0][2])+ "');");
            Prin = null;
            Close();
        }

    }
}
